<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.ScrollBar类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_scroll_bar.html">ScrollBar</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classawtk_1_1_scroll_bar-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.ScrollBar类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.ScrollBar 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_scroll_bar.png" usemap="#awtk.ScrollBar_map" alt=""/>
  <map id="awtk.ScrollBar_map" name="awtk.ScrollBar_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a1123e158aef9718040400ebb192f55aa"><td class="memItemLeft" align="right" valign="top"><a id="a1123e158aef9718040400ebb192f55aa"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>ScrollBar</b> (long nativeObj)</td></tr>
<tr class="separator:a1123e158aef9718040400ebb192f55aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44e4ffab97d3d46e20cbc488e794d8bc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_bar.html#a44e4ffab97d3d46e20cbc488e794d8bc">setParams</a> (int virtual_size, int row)</td></tr>
<tr class="separator:a44e4ffab97d3d46e20cbc488e794d8bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3008815d99229189127a1dcf7f882311"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_bar.html#a3008815d99229189127a1dcf7f882311">scrollTo</a> (int value, int duration)</td></tr>
<tr class="separator:a3008815d99229189127a1dcf7f882311"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16a7d5a0969b059ae035f9c4c3eb4768"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_bar.html#a16a7d5a0969b059ae035f9c4c3eb4768">setValue</a> (int value)</td></tr>
<tr class="separator:a16a7d5a0969b059ae035f9c4c3eb4768"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44968419c482f9634c4fd1d1f6b32012"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_bar.html#a44968419c482f9634c4fd1d1f6b32012">addDelta</a> (int delta)</td></tr>
<tr class="separator:a44968419c482f9634c4fd1d1f6b32012"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0221d904a87a8130446ce1476ad02251"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_bar.html#a0221d904a87a8130446ce1476ad02251">scrollDelta</a> (int delta)</td></tr>
<tr class="separator:a0221d904a87a8130446ce1476ad02251"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0f92a5714400b36706d7508701f3458"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_bar.html#ad0f92a5714400b36706d7508701f3458">setValueOnly</a> (int value)</td></tr>
<tr class="separator:ad0f92a5714400b36706d7508701f3458"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec80ef1ec6b2b89db4c10e426e54423b"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_bar.html#aec80ef1ec6b2b89db4c10e426e54423b">isMobile</a> ()</td></tr>
<tr class="separator:aec80ef1ec6b2b89db4c10e426e54423b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a13397b1b09ab2d1d0b453cff1a39e1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_bar.html#a1a13397b1b09ab2d1d0b453cff1a39e1">getVirtualSize</a> ()</td></tr>
<tr class="separator:a1a13397b1b09ab2d1d0b453cff1a39e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef6f786c7ec46efa297170835bb0e901"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_bar.html#aef6f786c7ec46efa297170835bb0e901">getRow</a> ()</td></tr>
<tr class="separator:aef6f786c7ec46efa297170835bb0e901"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3e14fbc075d2ef6e68a050c03323cab"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_bar.html#ab3e14fbc075d2ef6e68a050c03323cab">getAnimatable</a> ()</td></tr>
<tr class="separator:ab3e14fbc075d2ef6e68a050c03323cab"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a3f78efa6598f418cdcc8abfba95ff25c"><td class="memItemLeft" align="right" valign="top"><a id="a3f78efa6598f418cdcc8abfba95ff25c"></a>
static <a class="el" href="classawtk_1_1_scroll_bar.html">ScrollBar</a>&#160;</td><td class="memItemRight" valign="bottom"><b>cast</b> (long nativeObj)</td></tr>
<tr class="separator:a3f78efa6598f418cdcc8abfba95ff25c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb1fddbfdb6832434c66beff41511491"><td class="memItemLeft" align="right" valign="top">static Widget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_bar.html#adb1fddbfdb6832434c66beff41511491">create</a> (Widget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:adb1fddbfdb6832434c66beff41511491"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76b6de8fa87eef154d9dc395df668aaa"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_scroll_bar.html">ScrollBar</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_bar.html#a76b6de8fa87eef154d9dc395df668aaa">cast</a> (Widget widget)</td></tr>
<tr class="separator:a76b6de8fa87eef154d9dc395df668aaa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09eead1032616de0f7cacdc9ace517f9"><td class="memItemLeft" align="right" valign="top">static Widget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_bar.html#a09eead1032616de0f7cacdc9ace517f9">createMobile</a> (Widget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:a09eead1032616de0f7cacdc9ace517f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a195ff37f8a87ed5033f37116f7be864f"><td class="memItemLeft" align="right" valign="top">static Widget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_scroll_bar.html#a195ff37f8a87ed5033f37116f7be864f">createDesktop</a> (Widget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:a195ff37f8a87ed5033f37116f7be864f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a03d4ca0bd431881d5363ef4ac29606ce"><td class="memItemLeft" align="right" valign="top"><a id="a03d4ca0bd431881d5363ef4ac29606ce"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:a03d4ca0bd431881d5363ef4ac29606ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>滚动条控件。</p>
<p>目前只支持垂直滚动。</p>
<p>scroll_bar_t是widget的子类控件，widget_t的函数均适用于scroll_bar_t控件。</p>
<p>在xml中使用"scroll\_bar"或"scroll\_bar\_d"或"scroll\_bar\_m"标签创建滚动条控件。如：</p>
<div class="fragment"><div class="line">&lt;<span class="keywordtype">list_view</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span>  <span class="keyword">y</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;-80&quot;</span> <span class="keyword">item_height</span>=<span class="stringliteral">&quot;60&quot;</span>&gt;</div><div class="line">&lt;<span class="keywordtype">scroll_view</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;view&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span>  <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span>&gt;</div><div class="line">...</div><div class="line">&lt;/<span class="keywordtype">scroll_view</span>&gt;</div><div class="line">&lt;<span class="keywordtype">scroll_bar_m</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;bar&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;right&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;6&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">value</span>=<span class="stringliteral">&quot;0&quot;</span>/&gt;</div><div class="line">&lt;/<span class="keywordtype">list_view</span>&gt;</div></div><!-- fragment --><p>更多用法请参考：<a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/list_view_m.xml">list_view_m.xml</a></p>
<p>在c代码中使用函数scroll_bar_create创建列表项控件。如：</p>
<div class="fragment"><div class="line">&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;default&quot;</span>&gt;</div><div class="line">&lt;<span class="keywordtype">normal</span> <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#c0c0c0&quot;</span> <span class="keyword">fg_color</span>=<span class="stringliteral">&quot;#808080&quot;</span>/&gt;</div><div class="line">&lt;<span class="keywordtype">over</span> <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#c0c0c0&quot;</span> <span class="keyword">fg_color</span>=<span class="stringliteral">&quot;#808080&quot;</span>/&gt;</div><div class="line">&lt;<span class="keywordtype">pressed</span> <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#c0c0c0&quot;</span> <span class="keyword">fg_color</span>=<span class="stringliteral">&quot;#808080&quot;</span>/&gt;</div><div class="line">&lt;/<span class="keywordtype">style</span>&gt;</div></div><!-- fragment --><p>更多用法请参考：<a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/styles/default.xml#L350">theme default</a> </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a44968419c482f9634c4fd1d1f6b32012"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a44968419c482f9634c4fd1d1f6b32012">&#9670;&nbsp;</a></span>addDelta()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.ScrollBar.addDelta </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>delta</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>在当前的值上增加一个值，并触发EVT_VALUE_CHANGED事件。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">delta</td><td>值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a76b6de8fa87eef154d9dc395df668aaa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a76b6de8fa87eef154d9dc395df668aaa">&#9670;&nbsp;</a></span>cast()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_scroll_bar.html">ScrollBar</a> awtk.ScrollBar.cast </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为scroll_bar对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>scroll_bar对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>scroll_bar对象。 </dd></dl>

</div>
</div>
<a id="adb1fddbfdb6832434c66beff41511491"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb1fddbfdb6832434c66beff41511491">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Widget awtk.ScrollBar.create </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建scroll_bar对象</p>
<p>根据宏WITH_DESKTOP_STYLE决定创建desktop风格还是mobile风格的滚动条</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a195ff37f8a87ed5033f37116f7be864f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a195ff37f8a87ed5033f37116f7be864f">&#9670;&nbsp;</a></span>createDesktop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Widget awtk.ScrollBar.createDesktop </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建desktop风格的scroll_bar对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a09eead1032616de0f7cacdc9ace517f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a09eead1032616de0f7cacdc9ace517f9">&#9670;&nbsp;</a></span>createMobile()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Widget awtk.ScrollBar.createMobile </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建mobile风格的scroll_bar对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="ab3e14fbc075d2ef6e68a050c03323cab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3e14fbc075d2ef6e68a050c03323cab">&#9670;&nbsp;</a></span>getAnimatable()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.ScrollBar.getAnimatable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>滚动时是否启用动画。 </p>

</div>
</div>
<a id="aef6f786c7ec46efa297170835bb0e901"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef6f786c7ec46efa297170835bb0e901">&#9670;&nbsp;</a></span>getRow()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.ScrollBar.getRow </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>行的高度。 </p>

</div>
</div>
<a id="a1a13397b1b09ab2d1d0b453cff1a39e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a13397b1b09ab2d1d0b453cff1a39e1">&#9670;&nbsp;</a></span>getVirtualSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.ScrollBar.getVirtualSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>虚拟宽度或高度。 </p>

</div>
</div>
<a id="aec80ef1ec6b2b89db4c10e426e54423b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec80ef1ec6b2b89db4c10e426e54423b">&#9670;&nbsp;</a></span>isMobile()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.ScrollBar.isMobile </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>判断是否是mobile风格的滚动条。</p>
<dl class="section return"><dt>返回</dt><dd>返回TRUE表示是mobile风格的，否则表示不是mobile风格的。 </dd></dl>

</div>
</div>
<a id="a0221d904a87a8130446ce1476ad02251"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0221d904a87a8130446ce1476ad02251">&#9670;&nbsp;</a></span>scrollDelta()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.ScrollBar.scrollDelta </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>delta</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>在当前的值上增加一个值，并滚动到新的值，并触发EVT_VALUE_CHANGED事件。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">delta</td><td>值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a3008815d99229189127a1dcf7f882311"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3008815d99229189127a1dcf7f882311">&#9670;&nbsp;</a></span>scrollTo()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.ScrollBar.scrollTo </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>duration</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>滚动到指定的值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>值。 </td></tr>
    <tr><td class="paramname">duration</td><td>动画持续时间。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a44e4ffab97d3d46e20cbc488e794d8bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a44e4ffab97d3d46e20cbc488e794d8bc">&#9670;&nbsp;</a></span>setParams()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.ScrollBar.setParams </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>virtual_size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>row</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置参数。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">virtual_size</td><td>虚拟高度。 </td></tr>
    <tr><td class="paramname">row</td><td>每一行的高度。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a16a7d5a0969b059ae035f9c4c3eb4768"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a16a7d5a0969b059ae035f9c4c3eb4768">&#9670;&nbsp;</a></span>setValue()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.ScrollBar.setValue </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置值，并触发EVT_VALUE_CHANGED事件。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ad0f92a5714400b36706d7508701f3458"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0f92a5714400b36706d7508701f3458">&#9670;&nbsp;</a></span>setValueOnly()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.ScrollBar.setValueOnly </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置值，但不触发EVT_VALUE_CHANGED事件。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/ScrollBar.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
